const Controller = require('egg').Controller;

class IconController extends Controller {
    async index() {
        const {
            ctx
        } = this;
        var db = this.app.mongodb;
        var res = await db.collection("expenditure").find().toArray();
        // console.log(res)
        ctx.body = res
    }
}

module.exports = IconController;
